package model.app;

import android.databinding.BaseObservable;

import java.io.Serializable;
import java.util.List;

public class RspList<T> extends BaseObservable implements Serializable{


    private int status;
    private String error;
    private List<T> data;

    public RspList() {
    }

    public RspList(int status, String error) {
        this.status = status;
        this.error = error;
    }

    public RspList(int status, String error, List<T> data) {
        this.status = status;
        this.error = error;
        this.data = data;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }


}
